import hashlib

def md5Password(text1):
    SALE = text1[:4]  # 设置盐值
    md_sale = hashlib.md5((text1 + SALE).encode())  # MD5加盐加密方法一：将盐拼接在原密码后
    md5salepwd = md_sale.hexdigest()
    return md5salepwd
